<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core_1_1" %>
<%--
  Created by IntelliJ IDEA.
  User: 润
  Date: 2021/7/27
  Time: 10:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1 align="center">学院年级页面</h1>
<div><a href="addGrade.jsp?cid=${requestScope.collegeId}">添加年级</a></div>
<div align="center">
<table>
    <tr>
        <th>序号</th>
        <th>年级</th>
    </tr>
    <c:forEach items="${requestScope.grades}" var="grade" varStatus="status"><br>
        <tr>
            <td>${status.index+1}</td>
            <td><a href="ClassServlet?action=queryAllClass&gid=${grade.id}">${grade.name}</a></td>
            <td><a href="GradeServlet?action=queryOneGrade&cid=${grade.id}">修改</a></td>
            <td><a href="GradeServlet?action=deleteGrade&id=${grade.id}">删除</a> </td>
        </tr>
    </c:forEach>
</table>
</div>
</body>
</html>
